<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/web/header.jsp" %>
<title>添加商品信息</title>
</head>
<body>
<fieldset class="layui-elem-field" style="margin:30px;padding:30px">
	<legend>添加商品信息</legend>
	<div class="layui-field-box">
			<form class="layui-form-pane layui-form">
				<div class="layui-form-item">
					<label class="layui-form-label">用户编号</label>
					<div class="layui-input-inline">
						<input class="layui-input" name="code" type="text" placeholder="请输入商品编号"
						required lay-verify="required" autocomplete="off">
					</div>
				</div>
				
				<div class="layui-form-item">
					<label class="layui-form-label">商品编号</label>
					<div class="layui-input-inline">
						<input class="layui-input" name="proCode" type="text" placeholder="请输入商品编号"
						required lay-verify="required" autocomplete="off">
					</div>
				</div>
				
				<div class="layui-form-item">
					<label class="layui-form-label">商品数量</label>
					<div class="layui-input-inline">
						<input class="layui-input" name="numb" type="text" placeholder="请输入商品单价"
						required lay-verify="required" autocomplete="off">
					</div>
				</div>	
				
				<div class="layui-form-item">
					<div class="layui-input-inline">
						<input type="button" value="确定" class="layui-btn" lay-submit lay-filter="add"  />
						<input type="reset" value="重置" class="layui-btn layui-btn-primary" />
					</div>
				</div>
			</form>
		</div>
		
	</fieldset>

	<script type="text/javascript">
		
		formOn('submit(add)',"/orderpro/insert.do","text",function(data){
			if(data==1){	
				layer.msg("添加成功",toClose);	
			}else if(data==0){
				layer.msg("账户但暂未填写地址，无法完成订单");	
			}else{
				layer.msg("添加失败");	
			}
		})
		
		
	</script>	

</body>
</html>